package com.missilike.core.utils;

/**
 * @Author: starmile
 * @Description:
 * @Create: 2018-12-10 23:45
 **/
public class IdentifyCodeUtils {
    /**
     * 获取一个六位随机数
     * @return
     */
    public static String getRandom() {
        String num = "";
        for (int i = 0; i < 6; i++) {
            num = num + String.valueOf((int) Math.floor(Math.random() * 9 + 1));
        }
        return num;
    }
}

